package com.mysharding.server.impl;

import com.mysharding.daomin.SysUser;
import com.mysharding.mapper.SysUserMapper;
import com.mysharding.server.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;
import java.util.Map;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;


    @Override
    public int insert(SysUser sysUser) {
        return sysUserMapper.insertUser(sysUser);
    }

    @Override
    public List<SysUser> allUser(Integer user_id, String create_time) {
        return sysUserMapper.allUser(user_id, create_time);
    }

    @Override
    public List<SysUser> allUser2() {
        return sysUserMapper.allUser2();
    }

    @Override
    public List<SysUser> allUser3() {
        return sysUserMapper.allUser3();
    }

    @Override
    public List<SysUser> allUser4() {
        List<SysUser> sysUsers = sysUserMapper.allUser4();
        List<SysUser> sysUsers2 = sysUserMapper.allUser41();
        sysUsers.addAll(sysUsers2);
        return sysUsers;
    }

    @Override
    public List<SysUser> allUser5() {
        return sysUserMapper.allUser5();
    }
}
